home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 2: CDPD 1
/
Almathera Ten on Ten - Disc 2: CDPD 1.iso
/
pd
/
351-375
/
366
/
makewords
/
phoneword.doc
< prev
next >
Wrap
Text File
|
1995-03-14
|
5KB
|
104 lines
1;33;40m
P H O N E W O R D v1.2
0;31;40m
PhoneWord accepts telephone numbers and tries to make English words
from them. It only shows you what it thinks might reasonably be words,
rather than all possible combinations of letters.
PhoneWord is public domain and may be freely distributed.
1;33;40m
---------------- H O W T O U S E P H O N E W O R D ------------------
0;31;40m
To run PhoneWord type "PhoneWord" at the CLI prompt, or double-click its
icon.
A brief set of instructions will be displayed, and then a prompt for you
to enter 2 to 7 digits, as in part or all of a phone number. Zero and one
are not accepted (there are no letters on the phone dial for 0 and 1).
If you enter more than seven digits or less than 2 digits an error
message will be displayed. If you enter anything that is not a digit 2-9
then an appropriate message is displayed.
If the phone number has ones or zeroes, then enter groups of the digits
other one and zero. For example, if the number is 691-4567, then try
4567 (and maybe 69). You should try grouping the seven digits in
different ways anyway, since two words might be found instead of one
big one. For example if the number is 234-5678, you could try
23 & 45678,
234 & 5678,
2345 & 678,
23456 & 78,
2345678.
After you enter the 2-7 digits a list of possible words will be
displayed. The list will be from 0 to 20 items long. The most probable
words, in PhoneWord's opinion, will be near the top, although words will
often show up near the end. A number will appear before each item, which
is PhoneWord's opinion of how likely the item is an English word. If
only two digits are entered, then all combinations are printed, but no
number.
To quit, press <RETURN> without any preceeding characters.
The amount of time required to generate the list of items depends on how
many digits are entered.
You can't stop PhoneWord once it starts working on a group of digits, but
the longest you will have to wait is less than 5 seconds.
Do not RUN PhoneWord, as in "RUN PhoneWord", because it won't work.
1;33;40m
----------------- H O W P H O N E W O R D W O R K S -------------------
0;31;40m
PhoneWord makes strings of letters from the telephone number and then
analyzes each string of letters by looking at the trigrams in
it. A trigram is a group of three letters, such as AAA, AAB, ING, QQQ,
etc. The trigram ING is much more likely to occur in an English word
than QQQ, so any string that contains ING is more likely to be a word than
one containing QQQ.
PhoneWord creates every possible arrangement of the letters for the
digits and looks at all of the trigrams in each arrangement. Each
trigram is has a weight based on how often it occurred in a dictionary of
38,500 words. The sum of the weights for all of the trigrams in a string
is the number listed along with each item. A table of up to twenty
arrangements is kept, with duplicates due to multiple occurrences of a
single letter eliminated (e.g., kEEp). After all of the arrangements
have been tested, the table of the ones with the highest weights is
displayed.
PhoneWord knows the weights for about 4300 trigrams that occurred in the
dictionary mentioned above. With 26 letters in the alphabet there are
26*26*26 (or 17,576) possible trigrams.
1;33;40m
-------------------------- W H O D I D I T ----------------------------
0;31;40m
Ron Charlton
9002 Balcor Circle
Knoxville, TN 37923
Phone: (615)694-0800
PLINK: R*CHARLTON
BITNET: charltr@utkvx1
05-Jul-90
1;33;40m
------------------------------ B A S I S --------------------------------
0;31;40m
The idea of using trigrams as the basis for deciding what might be a word
came from an article in BYTE magazine by Bob Keefer (July 1986, p. 113).
I adapted it to finding words in phone numbers.
1;33;40m
------------------------------- N O T E ---------------------------------
0;31;40m
Many telephone numbers don't form ANY words. If you believe PhoneWord
is bypassing what might be a good word then you should try my companion
program AllPhoneWord. It generates EVERY combination of letters for a
given telephone number. Expect to spend a lot of time searching the
list: A seven-digit phone number has 2,187 "words" for you to consider.